var func={
	addItem: function () {
      var text = this.newItem.trim()
      if (text) {
        this.datas.push({ text: text })
        this.newItem = ''
      }
    },
    removeItem: function (index) {
      this.datas.splice(index, 1)
    }
}
